/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32g0xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "rtthread.h"
#include "board.h"
/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/

/* USER CODE BEGIN EFP */
/* remember to delete this function */
/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define HALI_08_Pin GPIO_PIN_13
#define HALI_08_GPIO_Port GPIOC
#define FLASH_SCK_Pin GPIO_PIN_0
#define FLASH_SCK_GPIO_Port GPIOA
#define MX01_TX_Pin GPIO_PIN_2
#define MX01_TX_GPIO_Port GPIOA
#define MX01_RX_Pin GPIO_PIN_3
#define MX01_RX_GPIO_Port GPIOA
#define FLASH_NSS_Pin GPIO_PIN_1
#define FLASH_NSS_GPIO_Port GPIOB
#define FLASH_MISO_Pin GPIO_PIN_2
#define FLASH_MISO_GPIO_Port GPIOB
#define FLASH_MOSI_Pin GPIO_PIN_11
#define FLASH_MOSI_GPIO_Port GPIOB
#define SD_NSS_Pin GPIO_PIN_12
#define SD_NSS_GPIO_Port GPIOB
#define NFC_RST_Pin GPIO_PIN_8
#define NFC_RST_GPIO_Port GPIOA
#define NFC_SCL_Pin GPIO_PIN_9
#define NFC_SCL_GPIO_Port GPIOA
#define NFC_SDA_Pin GPIO_PIN_10
#define NFC_SDA_GPIO_Port GPIOA
#define NFC_IRQ_Pin GPIO_PIN_11
#define NFC_IRQ_GPIO_Port GPIOA
#define HALI_01_Pin GPIO_PIN_15
#define HALI_01_GPIO_Port GPIOA
#define HALI_02_Pin GPIO_PIN_0
#define HALI_02_GPIO_Port GPIOD
#define HALI_03_Pin GPIO_PIN_1
#define HALI_03_GPIO_Port GPIOD
#define HALI_04_Pin GPIO_PIN_2
#define HALI_04_GPIO_Port GPIOD
#define HALI_05_Pin GPIO_PIN_3
#define HALI_05_GPIO_Port GPIOD
#define MX01_BRTS_Pin GPIO_PIN_3
#define MX01_BRTS_GPIO_Port GPIOB
#define MX01_LINK_Pin GPIO_PIN_4
#define MX01_LINK_GPIO_Port GPIOB
#define MX01_CDS_Pin GPIO_PIN_5
#define MX01_CDS_GPIO_Port GPIOB
#define MSH_TX_Pin GPIO_PIN_6
#define MSH_TX_GPIO_Port GPIOB
#define MSH_RX_Pin GPIO_PIN_7
#define MSH_RX_GPIO_Port GPIOB
#define HALI_06_Pin GPIO_PIN_8
#define HALI_06_GPIO_Port GPIOB
#define HALI_07_Pin GPIO_PIN_9
#define HALI_07_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
